package com.vsd.repository;

import java.util.Collection;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.rest.core.annotation.RestResource;

import com.vsd.domain.UserCreditLog;

@RestResource(exported = false)
public interface UserCreditLogRepository extends CrudRepository<UserCreditLog, String> {

	Collection<UserCreditLog> findAll();

	Page<UserCreditLog> findAll(Pageable p);
	
	Page<UserCreditLog> findByUserId(String userId,Pageable p);
	
}
